﻿using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Web.Script.Services;
using System.Web.Script.Serialization;
using System.Collections.Generic;

[WebService ( Namespace = "http://tempuri.org/" )]
[WebServiceBinding ( ConformsTo = WsiProfiles.BasicProfile1_1 )]
[ScriptService]
public class ajaxdatatype_webservice : WebService
{

	[WebMethod]
	[ScriptMethod]
	public string StringToString ( string value )
	{
		this.Context.Response.Cache.SetNoStore ( );

		return string.Format ( "{0}", value );
	}

	[WebMethod]
	[ScriptMethod]
	public string IntToString ( int value )
	{
		this.Context.Response.Cache.SetNoStore ( );

		return string.Format ( "{0}", value );
	}

	[WebMethod]
	[ScriptMethod]
	public string BoolToString ( bool value )
	{
		this.Context.Response.Cache.SetNoStore ( );

		return string.Format ( "{0}", value );
	}

	[WebMethod]
	[ScriptMethod]
	public string DateToString ( DateTime value )
	{
		this.Context.Response.Cache.SetNoStore ( );

		return string.Format ( "{0}", value );
	}

	[WebMethod]
	[ScriptMethod]
	public DateTime GetDate ( )
	{
		this.Context.Response.Cache.SetNoStore ( );

		return DateTime.Now;
	}

}
